<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:44:"E:\Web\shenpi\thinkphp\tpl\dispatch_jump.tpl";i:1531917323;}*/ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <title>跳转提示</title>

    <!-- jQuery 3 -->
    <script src="/static/admin/bower_components/jquery/dist/jquery.min.js"></script>
    <script src="/static/plus/layer/layer.js"></script>
</head>
<body style="background-color: #3c8dbc;">
<div class="system-message">

    <input type="hidden" id="msg" value="<?php echo(strip_tags($msg));?>" />
    <input type="hidden" id="url" value="<?php echo(strip_tags($url));?>" />
    <input type="hidden" id="wait" value="<?php echo(strip_tags($wait));?>" />
</div>
<script type="text/javascript">
    (function(){
        var msg=$('#msg').val();
        var url1=$('#url').val();
        var wait=$('#wait').val();

        layer.open({
            content:msg,//提示信息
            anim:Math.floor(Math.random()*8),//0-7的随机动画效果
            style: 'background: rgba(51,102,204,0.9)',
            success:function(layero,index){
                var interval = setInterval(function(){
                    var time = --wait;
                    if(time <= 0) {
                        location.href = url1;
                        clearInterval(interval);
                    };
                }, 500);
            }
        })

    })();
</script>
</body>
</html>
